package com.cyt.work.wb.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * 维保模块-设备表Vo类
 *
 * @author shengQiang Yu
 * @date 2019-11-28 9:26:43
 */
@Data
public class WbDevicesExportVo implements Serializable {


	/**
     * 设备名称
     */
	@Excel(name = "*设备号")
	@NotBlank(message = "设备名不能为空")
	private String name;

	/**
     * 设备编号
     */
	@Excel(name = "*设备编号")
	@NotBlank(message = "设备编号不能为空")
	private String num;

	/**
     * 设备分类
     */
	@Excel(name = "*设备分类")
	@NotBlank(message = "设备分类不能为空")
	private String deviceTypeId;


	/**
     * 设备类别
     */
	@Excel(name = "*设备类型",dict = "deviceCategory")
	@NotBlank(message = "设备名不能为空")
	private String deviceCategory;

	/**
     * 设备型号
     */
	@Excel(name = "*设备型号")
	@NotBlank(message = "设备型号不能为空")
	private String deviceModel;

	/**
     * 存放地点
     */
	@Excel(name = "*存放地点")
	@NotBlank(message = "存放地点不能为空")
	private String roomId;

	/**
     * 生产日期
     */
	@Excel(name = "*生产日期" ,format="yyyy-MM-dd")
	@NotBlank(message = "生产日期不能为空")
	private String producedDate;

	/**
     * 购买日期
     */
	@Excel(name = "*购买日期",format="yyyy-MM-dd")
	@NotBlank(message = "购买日期不能为空")
	private String  buyDate;

	/**
     * 维修日期
     */
	@Excel(name = "*维修日期",format="yyyy-MM-dd")
	@NotBlank(message = "维修日期不能为空")
	private String  maintenanceDate;

	/**
     * 使用年限
     */
	@Excel(name = "*使用年限")
	@NotBlank(message = "使用年限不能为空")
	private String durableTime;
	/**
     * 供应商ID
     */
	@Excel(name = "*供应商")
	@NotBlank(message = "供应商不能为空")
	private String servicerId;
	/**
     * 合同ID
     */
	@Excel(name = "*合同")
	@NotBlank(message = "合同不能为空")
	private String contractId;
	/**
     * 备注信息
     */
	@Excel(name = "备注")
	private String remarks;
	/**
     * 排序
     */
	@Excel(name = "*排序")
	@NotBlank(message = "排序不能为空")
	private String sort;

	public WbDevicesExportVo() {
	}

	public WbDevicesExportVo(String name, String num, String deviceTypeId, String deviceCategory, String deviceModel, String roomId, String producedDate, String buyDate, String maintenanceDate, String durableTime, String servicerId, String contractId, String remarks, String sort) {
		this.name = name;
		this.num = num;
		this.deviceTypeId = deviceTypeId;
		this.deviceCategory = deviceCategory;
		this.deviceModel = deviceModel;
		this.roomId = roomId;
		this.producedDate = producedDate;
		this.buyDate = buyDate;
		this.maintenanceDate = maintenanceDate;
		this.durableTime = durableTime;
		this.servicerId = servicerId;
		this.contractId = contractId;
		this.remarks = remarks;
		this.sort = sort;
	}
}